package cn.learn.server;

import cn.learn.server.jute.InputArchive;
import cn.learn.server.jute.OutputArchive;
import java.io.IOException;

public class StatPersisted implements Record {
    private long czxid;
    private long mzxid;
    private long ctime;
    private long mtime;
    private int version;
    private int cversion;
    private int aversion;
    private long ephemeralOwner;
    private long pzxid;
    public StatPersisted() {
    }
    public StatPersisted(
            long czxid,
            long mzxid,
            long ctime,
            long mtime,
            int version,
            int cversion,
            int aversion,
            long ephemeralOwner,
            long pzxid) {
        this.czxid=czxid;
        this.mzxid=mzxid;
        this.ctime=ctime;
        this.mtime=mtime;
        this.version=version;
        this.cversion=cversion;
        this.aversion=aversion;
        this.ephemeralOwner=ephemeralOwner;
        this.pzxid=pzxid;
    }
    public long getCzxid() {
        return czxid;
    }
    public void setCzxid(long m_) {
        czxid=m_;
    }
    public long getMzxid() {
        return mzxid;
    }
    public void setMzxid(long m_) {
        mzxid=m_;
    }
    public long getCtime() {
        return ctime;
    }
    public void setCtime(long m_) {
        ctime=m_;
    }
    public long getMtime() {
        return mtime;
    }
    public void setMtime(long m_) {
        mtime=m_;
    }
    public int getVersion() {
        return version;
    }
    public void setVersion(int m_) {
        version=m_;
    }
    public int getCversion() {
        return cversion;
    }
    public void setCversion(int m_) {
        cversion=m_;
    }
    public int getAversion() {
        return aversion;
    }
    public void setAversion(int m_) {
        aversion=m_;
    }
    public long getEphemeralOwner() {
        return ephemeralOwner;
    }
    public void setEphemeralOwner(long m_) {
        ephemeralOwner=m_;
    }
    public long getPzxid() {
        return pzxid;
    }
    public void setPzxid(long m_) {
        pzxid=m_;
    }

    public void serialize(OutputArchive a_, String tag) throws IOException {
        a_.startRecord(this,tag);
        a_.writeLong(czxid,"czxid");
        a_.writeLong(mzxid,"mzxid");
        a_.writeLong(ctime,"ctime");
        a_.writeLong(mtime,"mtime");
        a_.writeInt(version,"version");
        a_.writeInt(cversion,"cversion");
        a_.writeInt(aversion,"aversion");
        a_.writeLong(ephemeralOwner,"ephemeralOwner");
        a_.writeLong(pzxid,"pzxid");
        a_.endRecord(this,tag);
    }

    @Override
    public void deserialize(InputArchive ia, String fileheader) throws IOException {

    }
}
